package cn.calin.day05.demo05;
import java.util.Arrays;
public class CharArrays {
    public static void main(String[] args) {
        //定义随机字符串
        String a="kasndbcixujkw[poh235311";
        //转换字符数组
        char[] ch=a.toCharArray();
        //升序排序
        Arrays.sort(ch);
        //反向遍历打印
        for (int i = ch.length - 1; i >= 0; i--) {
            System.out.print(ch[i]+" ");
        }
    }
}
